package edu.zut.hb.ambition.outpatienttype.domain;


import edu.zut.hb.ambition.base.dao.GenericDao;
import edu.zut.hb.ambition.outpatienttype.domain.Outpatienttype;

import java.util.Set;

public class OutpatienttypeGroup extends BaseTreeEntity<OutpatienttypeGroup, Long> {


    private static final long serialVersionUID = 5793044840120005316L;


    @Column(name = "CODE")
    String code;


    @Column(name = "PRICE")
    Integer price;

    @OneToMany(mappedBy = "cartGroup", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
    Set<Outpatienttype> outpatienttypes;


    public Set<Outpatienttype> getReports() {
        return outpatienttypes;
    }

    public void setOutpatienttypes(Set<Outpatienttype> outpatienttypes) {
        this.outpatienttypes = outpatienttypes;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getPrice() {
        return price;
    }


    public void setPrice(Integer price) {
        this.price = price;
    }
}
